package cc.ycws.core.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import com.alibaba.fastjson.annotation.JSONField;

/**
  * <p>
  * 客户表
  * </p>
  *
  * @author tutu
  * @since 2018-05-22
  */
@TableName("cc_customer")
public class CcCustomer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 客户编号
     */
    @TableField("customer_no")
    private String customerNo;

    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 身份证
     */
    @TableField("customer_card")
    private String customerCard;

    /**
     * 电话
     */
    @TableField("customer_phone")
    private String customerPhone;

    /**
     * 房间信息
     */
    @TableField("customer_room")
    private String customerRoom;

    /**
     * 性别(0=男,1=女)
     */
    @TableField("customer_sex")
    private String customerSex;

    /**
     * 父id,指向业主表
     */
    @TableField("identity_pid")
    private String identityPid;

    /**
     * 0=业主 1=家人 2=朋友
     */
    @TableField("identity_type")
    private String identityType;

    /**
     * 小区编号
     */
    @TableField("community_no")
    private String communityNo;

    /**
     * 小区名称
     */
    @TableField("community_name")
    private String communityName;

    /**
     * 楼栋编号
     */
    @TableField("building_no")
    private String buildingNo;

    /**
     * 楼栋名称
     */
    @TableField("building_name")
    private String buildingName;

    /**
     * 客户类型(0=业主 1=访客)
     */
    @TableField("customer_type")
    private String customerType;

    /**
     * 头像地址
     */
    @TableField("photo_url")
    private String photoUrl;

    /**
     * 卡号
     */
    @TableField("card_no")
    private String cardNo;

    /**
     * 过期日期
     */
    @TableField("card_expired_date")
    private Date cardExpiredDate;

    /**
     * 注册状态(0=设备注册未关注 1=设备注册以关注 2=设备注册已绑定 3=设备注册取消绑定 1001=其他渠道注册)
     */
    @TableField("regist_status")
    private String registStatus;

    /**
     * 单据状态(0=制单 1=制单完成 2已审核 3=已弃用)
     */
    @TableField("audit_status")
    private String auditStatus;

    /**
     * 建档人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String creator;

    /**
     * 建档时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
    private Date createTime;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifier;

    /**
     * 修改时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;

    /**
     * 审核人
     */
    private String auditor;

    /**
     * 审核时间
     */
    @TableField("audit_time")
    private Date auditTime;

    /**
     * 备注
     */
    private String remarks;

    public Integer getId() {
    return id;
    }

    public void setId(Integer id) {
    this.id = id;
    }
    public String getCustomerNo() {
    return customerNo;
    }

    public void setCustomerNo(String customerNo) {
    this.customerNo = customerNo;
    }
    public String getCustomerName() {
    return customerName;
    }

    public void setCustomerName(String customerName) {
    this.customerName = customerName;
    }
    public String getCustomerCard() {
    return customerCard;
    }

    public void setCustomerCard(String customerCard) {
    this.customerCard = customerCard;
    }
    public String getCustomerPhone() {
    return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
    this.customerPhone = customerPhone;
    }
    public String getCustomerRoom() {
    return customerRoom;
    }

    public void setCustomerRoom(String customerRoom) {
    this.customerRoom = customerRoom;
    }
    public String getCustomerSex() {
    return customerSex;
    }

    public void setCustomerSex(String customerSex) {
    this.customerSex = customerSex;
    }
    public String getIdentityPid() {
    return identityPid;
    }

    public void setIdentityPid(String identityPid) {
    this.identityPid = identityPid;
    }
    public String getIdentityType() {
    return identityType;
    }

    public void setIdentityType(String identityType) {
    this.identityType = identityType;
    }
    public String getCommunityNo() {
    return communityNo;
    }

    public void setCommunityNo(String communityNo) {
    this.communityNo = communityNo;
    }
    public String getCommunityName() {
    return communityName;
    }

    public void setCommunityName(String communityName) {
    this.communityName = communityName;
    }
    public String getBuildingNo() {
    return buildingNo;
    }

    public void setBuildingNo(String buildingNo) {
    this.buildingNo = buildingNo;
    }
    public String getBuildingName() {
    return buildingName;
    }

    public void setBuildingName(String buildingName) {
    this.buildingName = buildingName;
    }
    public String getCustomerType() {
    return customerType;
    }

    public void setCustomerType(String customerType) {
    this.customerType = customerType;
    }
    public String getPhotoUrl() {
    return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
    this.photoUrl = photoUrl;
    }
    public String getCardNo() {
    return cardNo;
    }

    public void setCardNo(String cardNo) {
    this.cardNo = cardNo;
    }
    public Date getCardExpiredDate() {
    return cardExpiredDate;
    }

    public void setCardExpiredDate(Date cardExpiredDate) {
    this.cardExpiredDate = cardExpiredDate;
    }
    public String getRegistStatus() {
    return registStatus;
    }

    public void setRegistStatus(String registStatus) {
    this.registStatus = registStatus;
    }
    public String getAuditStatus() {
    return auditStatus;
    }

    public void setAuditStatus(String auditStatus) {
    this.auditStatus = auditStatus;
    }
    public String getCreator() {
    return creator;
    }

    public void setCreator(String creator) {
    this.creator = creator;
    }
    public Date getCreateTime() {
    return createTime;
    }

    public void setCreateTime(Date createTime) {
    this.createTime = createTime;
    }
    public String getModifier() {
    return modifier;
    }

    public void setModifier(String modifier) {
    this.modifier = modifier;
    }
    public Date getModifyTime() {
    return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
    this.modifyTime = modifyTime;
    }
    public String getAuditor() {
    return auditor;
    }

    public void setAuditor(String auditor) {
    this.auditor = auditor;
    }
    public Date getAuditTime() {
    return auditTime;
    }

    public void setAuditTime(Date auditTime) {
    this.auditTime = auditTime;
    }
    public String getRemarks() {
    return remarks;
    }

    public void setRemarks(String remarks) {
    this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "CcCustomer{" +
                "id=" + id +
                ", customerNo=" + customerNo +
                ", customerName=" + customerName +
                ", customerCard=" + customerCard +
                ", customerPhone=" + customerPhone +
                ", customerRoom=" + customerRoom +
                ", customerSex=" + customerSex +
                ", identityPid=" + identityPid +
                ", identityType=" + identityType +
                ", communityNo=" + communityNo +
                ", communityName=" + communityName +
                ", buildingNo=" + buildingNo +
                ", buildingName=" + buildingName +
                ", customerType=" + customerType +
                ", photoUrl=" + photoUrl +
                ", cardNo=" + cardNo +
                ", cardExpiredDate=" + cardExpiredDate +
                ", registStatus=" + registStatus +
                ", auditStatus=" + auditStatus +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", modifier=" + modifier +
                ", modifyTime=" + modifyTime +
                ", auditor=" + auditor +
                ", auditTime=" + auditTime +
                ", remarks=" + remarks +
        "}";
    }
}
